import pinia from "@/stores";
import useSettingStore from "@/stores/modules/setting";
const settingStore = useSettingStore(pinia);
export const hasBtn = (app) => {
  console.log("hasBtn");
  app.directive("hasBtn", {
    mounted(el,{value}){
      //判断value是否在btnlist中
      if(!settingStore.buttonList.includes(value)) {
        el.parentNode.removeChild(el);
      }
    }
  });
};
